<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEveryDayLoginRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //登录次数记录
        Schema::create('every_day_login_record', function(Blueprint $table) {
            $table->increments('id');
            $table->char('user_id',50)->nullable()->comment('用户id');
            $table->timestamp('login_time')->nullable()->comment('登录时间');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
